<template>
  <view>
    <index-list ref="list" />
  </view>
</template>

<script>
import IndexList from "./index-list.vue";

const shareInfo = {
  title: "游侠欢乐园",
  path: "/pages/index/index",
};
export default {
  components: {
    IndexList,
  },
  onShareAppMessage() {
    return shareInfo;
  },
  onShareTimeline() {
    return shareInfo;
  },
  async onPullDownRefresh() {
    try {
      await this.$refs.list.getDocList();
    } catch (error) {
      //
    }
    uni.stopPullDownRefresh();
  },
};
</script>